/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.constant.enums.IsfdBusinessDatabaseTypeEnum;
import com.comac.ins.isfd.domain.IsfdBusinessDatabaseRef;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdBusinessDatabaseRef.class, reverseConvertGenerate = false)
public class IsfdBusinessDatabaseRefBo extends BaseEntity {

    /**
     * 自增主键，唯一标识每一个记录
     */
    @NotNull(message = "自增主键，唯一标识每一个记录不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 业务场景id
     */
    @NotNull(message = "业务场景id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long sceneId;

    /**
     * 业务系统id
     */
    @NotNull(message = "业务系统id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long systemId;

    /**
     * 要素库类型id
     */
    @NotNull(message = "要素库类型id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long databaseTypeId;

    /**
     * 父模型id
     */
    @NotNull(message = "父模型id", groups = {AddGroup.class, EditGroup.class})
    private Long parentModelId;

    /**
     * 模型类型，model-普通模型,common_model-通用模型
     *
     * @see com.comac.ins.isfd.constant.enums.IsfdBusinessDatabaseTypeEnum
     */
    private String modelType = IsfdBusinessDatabaseTypeEnum.MODEL.getValue();

    /**
     * 是否导入过数据：0-未导入过，1-导入过，默认未导入
     */
    private Integer haveImportData;
}
